#pragma once

#include <iostream>
#include <vector>
#include <functional>

using fun_t = std::function<void()>;

class Tool
{
public:

	Tool(){}
	void PushFunc(fun_t f)
	{
		_funcs.push_back(f);
	}

	void Execute()
	{
		for(auto &f : _funcs)
		{
			f();
		}
	}

	~Tool(){}

private:
	std::vector<fun_t> _funcs; //方法集
};
